@echo off
call makeConfig.bat
setlocal
REM limitations under the License.

set ZOOCFGDIR=%~dp0%bin\..\conf
set ZOO_LOG_DIR=%~dp0%bin\..
set ZOO_LOG4J_PROP=INFO,CONSOLE
set ZOOCFG=%~dp0%zoo.cfg

REM make it work in the release
SET CLASSPATH=%~dp0bin\..\*;%~dp0bin\..\lib\*;%ZOOCFGDIR%

set ZOOMAIN=org.apache.zookeeper.server.quorum.QuorumPeerMain
echo on
java "-Dzookeeper.log.dir=%ZOO_LOG_DIR%" "-Dzookeeper.root.logger=%ZOO_LOG4J_PROP%" -cp "%CLASSPATH%" %ZOOMAIN% "%ZOOCFG%" %*

endlocal

